package ioc;

import ioc.dao.BookDaoImpl;
import ioc.service.BookServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class bookAppliaction {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext
                ("classpath:application-*.xml");
        BookDaoImpl bookService = context.getBean("bookDao", BookDaoImpl.class);
//        bookService.buy();

    }
}
